package study.lgf.action.config;

import study.lgf.service.config.SpringService;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class SpringAction extends ActionSupport {
	private SpringService springService;
	private String message;

	@Override
	public String execute() throws Exception {
		if(springService != null){
			System.out.println("成功");
			message = "初始化数据成功";
		}else{
			message = "初始化数据失败";
		}
		return super.execute();
	}
	
	
	
	public SpringService getSpringService() {
		return springService;
	}
	public void setSpringService(SpringService springService) {
		this.springService = springService;
	}
	
	public void setMessage(String message) {
		this.message = message;
	}
	public String getMessage() {
		return message;
	}
}
